import Vue from 'vue';
import FastClick from 'fastclick';
import VueRouter from 'vue-router';
import App from './App';
import routes from './router/index';
import '@/css/index.less';
import axios from 'axios';

Vue.prototype.$http = axios;

Vue.use(VueRouter);

const router = new VueRouter({
  mode: 'history',
  routes
});

FastClick.attach(document.body);

Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  router,
  render: h => h(App)
}).$mount('#app-box');
